export function withPublicPath(path: string) {
  const basePath = import.meta.env.VITE_APP_PUBLIC_PATH
  if (!basePath || basePath === '/') {
    return path
  }
  return `${basePath}/${path?.replace(/^\//, '')}`
}